/**
 * Created by shenyinlin on 2018/6/24.
 */


import {Pencil} from "./Pencil.js";
import {Sprite} from "../base/Sprite.js";
import {DataStore} from "../base/DataStore.js";
//上半部分的蜡烛
export class DownPencil extends Pencil{

    constructor(top){
        const image = Sprite.getImage('pencilDown');
        super(image,top);
    }

    draw(){
        let gap = DataStore.getInstance().canvas.height / 5;
        this.y = this.top + gap;
        super.draw();
    }
}